package com.hnisc.service.impl;

import com.hnisc.dao.CityDao;
import com.hnisc.entity.City;
import com.hnisc.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 城市service实现类
 */
import java.util.List;

@Service("cityService")
public class CityServiceImpl implements CityService {

    @Autowired
    private CityDao cityDao;

    @Override
    public List<City> getAll() {
        System.out.println("业务层：查询城市信息");
        return cityDao.getAll();
    }
}
